$(function(){
   $('.goods-delete').click(function(){
       var url = $(this).attr('data-href');
       $.get(url, function(info){
           info = JSON.parse(info);
           if(info.code == 200){
               layer.msg(info.msg,function(){})
           }else{
               window.location.reload();
           }

       });
   })
});